/**
 * 
 */
package gui.view;

import javax.swing.table.DefaultTableModel;

/**
 * A model for a Table that have named rows and columns.
 * 
 * @author Elisa Costante
 * 
 */
public class AttributeTableModel extends DefaultTableModel {

	private static final long serialVersionUID = 3130989321719061967L;

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.swing.table.TableModel#getColumnClass(int)
	 */
	@Override
	public Class<?> getColumnClass(int columnIndex) {
		if (columnIndex == 0)
			return String.class;
		else
			return getValueAt(0, columnIndex).getClass();
	}

}
